package com.tuanzi.loan.business.repository.system;

import java.util.List;

import com.tuanzi.loan.business.entity.system.DataPermission;
import com.tuanzi.loan.business.repository.system.custom.DataPermissionRepositoryCustom;
import com.tuanzi.loan.core.repository.JPABaseRepository;

/**
 * @author Ray 2017/09/21
 */
public interface DataPermissionRepository extends DataPermissionRepositoryCustom, JPABaseRepository<DataPermission, String> {

	List<DataPermission> findAllByParentId(String parentId);

	List<DataPermission> findByCode(String code);

}
